Skip to main content

2.1.3. Query String parameters

ParameterDescriptionType
documentIDThe invoice code (optional)Integer
documentExtIDThe account code in the external system (optional)integer
docTimeDate and time of document creation, format: yyyy-MM-dd hh:mm:ss(if passed, the system checks the uniqueness by the totality of fields: docTime + docNumber + amount; if such a document has already been fiscalized, then reprinting is performed without fiscalization) (optional)String
docNumberDocument number in the accounting systemString
wsNameNumber of the cash register to be printed on the check (optional)String
departmentNameStore name to be printed on the receipt (optional)String
departmentCodePoint of sale code with multimerchant system (optional)String
employeeNameStcashier's full nameString
amountDocument amount in kopecksString
currencyCurrency nameString
items:[{…}]List of goods/services on the invoiceArray
payments:[{…}]Payment blockArray
extraPayments:[{…}]Additional payment types arrayArray
fiscalIDFiscal code of the document if the document was fiscalized (for reprint)String
printFooterArbitrary lines to print at the end of the receipt (optional)String
creditContractCredit agreement number (mandatory when paying by credit)String
prepayDocIDFiscal prepayment check code (mandatory when using prepayment)String
prepayDocNumPrepay check number (optional)String
clientPhoneClient phone number (optional)String
clientNameClient name (optional)String
tipsTip amount in kopecks (optional)Integer
cashbackcashback amount in kopecks (optional)Integer
skipReceiptPrintDo not print terminal receipts when paying by card (optional)Boolean

items [{…}] Array​

FieldDescriptionType
itemIdProduct/Service code in the accounting systemString
itemCodeTypeType of Product/Service code in the accounting system (optional)
itemNameProduct/Service nameString
itemAttrExt. Attributes by position (1 - prepaid service) (optional)Integer
itemQRCodeQR code product identification systems (optional)Integer
itemCodeExternal code, classification (optional)
itemUnitCodeExternal packaging code (optional)
itemUnitUnit of measure (optional)
itemBarcodeItem barcod (optional)
itemQtyQty*1000Integer
itemAmountAmount to be paid in kopecksInteger
discountDiscount amount in kopecks (optional)Integer
discountPrcdiscount percentage (optional)Numeric
extraDataAdditional data, purpose depends on OFD (optional)String
textToPrintArbitrary text that will be printed after this position on the receiptString
itemTaxes:[{…}]List of taxes by itemArray
itemMarginSumThe amount of the margin part in kopecks that is taxable in accordance with the percentage of taxation, while part cost price is not taxed (optional)Integer
itemMarginPriceMargin price (optional)

itemTaxes [{…}] Array​

FieldDescriptionType
taxCodeTax symbol (recommended)String
taxNameTax name (required if not used taxCode)String
fullNameThe full name of the tax (including the percentage), (required if not used taxCode); By default, the receipt will print taxName + taxPrcString
taxPrcTax percentage*100 (required if not used taxCode)Integer
calcTypeTax calculation type (required if not used taxCode), possible values: 1 – including, 2 - fixed (excise amount*number of goods), 3 - simplified (percentage of the sale amount), Default value - 1Integer

payments [{…}] Array​

FieldDescriptionType
cashAmountCash payment amount in kopecksInteger
cashlessAmountThe amount of payment without cash in kopecksInteger
creditAmountCredit amount in kopecksInteger
bonusesAmountBonus payment amount in kopecksInteger
prepaymentAmountPrepayment amount in kopecksInteger
prepaymentCashlessAmountCashless prepayment amount in kopecks (optional)Integer
installmentAmountInstallment amount in kopecksInteger
invoiceAmountThe amount of non-cash payment without contacting the payment application in kopecksInteger
rrnTransaction number when paying by credit cardString
cardNumberNumber of the card used to make the paymentString
bankNameBank name (optional)String

[!NOTE] If the system for calculating sales taxes is not used, then the itemMarginPrice and itemMarginSum parameters do not need to be passed (or null values should be passed).

extraPayments [{…}] Array​

FieldDescriptionType
codePayment type codeString
amountPayment amount in kopecksInteger

Query String structure:​

{
"documentID": "integer, Account code (optional)",
"documentExtID": "integer, The account code in the external system (optional)",
"docTime": "string, document creation date and time, format: yyyy-MM-dd hh:mm:ss (optional, if provided, the system checks for uniqueness based on the combination of fields: docTime+docNumber+amount; if such a document has already been fiscalized, a reprint is performed without fiscalization)",
"docNumber": "string, document number in the accounting system",
"wsName": "string, cash register number for printing on the receipt, optional parameter",
"departmentName": "string, store name for printing on the receipt, optional parameter",
"departmentCode": "string, code of the point of sale in a multi-merchant system, optional parameter",
"employeeName": "string, cashier's full name",
"amount": "integer, document amount in kopecks",
"currency": "string, currency name",
"items":
[{
"itemId": "string, product/service code in the accounting system",
"itemCodeType": "type of product/service code in the accounting system, optional parameter",
"itemName": "string, product/service name",
"itemAttr": "integer, additional attributes for the position (1 – prepaid service), optional",
"itemQRCode": "string, QR code for product identification, optional parameter",
"itemCode": "string, external code, classification code, optional parameter",
"itemUnitCode": "string, external packaging code, optional parameter",
"itemUnit": "string, unit of measurement, optional parameter",
"itemBarcode": "string, product barcode, optional parameter",
"itemQty": "integer, quantity*1000",
"itemAmount": "integer, amount to be paid in kopecks",
"discount": "integer, discount amount in kopecks, optional parameter",
"discountPrc": "numeric, discount percentage, optional parameter",
"extraData": "string, additional data, purpose depends on the FDO, optional parameter",
"textToPrint": "string, arbitrary text to be printed after this position on the receipt",
"itemTaxes":
[{
"taxCode": "string, symbolic representation of the tax",
"taxName": "string, tax name (required if not used taxCode); ",
"taxPrc": "integer, tax percentage*100 (required if not used taxCode); ",
"calcType": "integer, tax calculation type (required if not used taxCode);, possible values: 1 – inclusive, 2 – fixed (excise tax amount*quantity of goods), 3 – simplified (percentage of sales amount). Default value - 1"
}],
"itemMarginSum": "integer, amount of the marginal part in kopecks, subject to tax according to the tax rate, while part of the cost price is not taxed, optional parameter",
"itemMarginPrice": "integer, price of the marginal part, optional parameter"
}],
"payments": {
"cashAmount": "integer, cash payment amount in kopecks",
"cashlessAmount": "integer, non-cash payment amount in kopecks",
"creditAmount": "integer, credit payment amount in kopecks",
"bonusesAmount": "integer, bonuses payment amount in kopecks",
"prepaymentAmount": "integer, prepayment amount in kopecks",
"prepaymentCashlessAmount": "integer, prepayment amount from non-cash prepayment in kopecks, optional",
"installmentAmount": "integer, installment payment amount in kopecks",
"invoiceAmount": "integer, non-cash payment amount without using the payment application in kopecks",
"rrn": "string, transaction number when paying by credit card",
"cardNumber": "string, card number used for payment",
"bankName": "string, bank name (optional)"
},
"extraPayments": [
{
"code": "string, payment type code",
"amount": "integer, payment amount in kopecks",
"trxParams": "json, additional parameters of card payment"
}],
"fiscalID": "string, fiscal document code, if the document was fiscalized (for reprinting)",
"printFooter": "string, arbitrary lines to print at the end of the receipt (optional)",
"creditContract": "string, credit agreement number (mandatory for credit payment)",
"prepayDocID": "string, fiscal code of the prepayment receipt (mandatory when using prepayment)",
"prepayDocNum": "string, prepayment receipt number (optional)",
"clientPhone": "string, client's phone number (optional)",
"clientName": "string, client's name (optional)",
"tips": "integer, tips amount in kopecks (optional)",
"cashback": "integer, cashback amount in kopecks (optional)"
}